package cn.fabrice.common;

import cn.fabrice.constant.MessageConstant;

public enum ErrorCode {
    PARAMETER_ERROR(40000, MessageConstant.PARAMETER_NOT_NORMAL,""),
    NOLL_ERROR(40001,MessageConstant.NOLL_ERROR,""),
    NOT_LOGIN(40100,MessageConstant.USER_NOT_LOGIN,""),
    NOT_AUTO(40101,MessageConstant.TYPE_ERROR,""),
    IS_DISABLED(40102,MessageConstant.ACCOUNT_LOCKED,""),
    SYSTEM_ERROR(50000,MessageConstant.SYSTEM_ERROR,"系统错误，请联系管理员")
    ;
    private final Integer code;
    private final String message;
    private final String description;

    ErrorCode(Integer code, String message, String description) {
        this.code = code;
        this.message = message;
        this.description = description;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public String getDescription() {
        return description;
    }
}
